#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20231130.sql ./mysql/db
cp ../sql/ry_config_20231204.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../aurora-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy aurora-gateway "
cp ../aurora-gateway/target/aurora-gateway.jar ./aurora/gateway/jar

echo "begin copy aurora-auth "
cp ../aurora-auth/target/aurora-auth.jar ./aurora/auth/jar

echo "begin copy aurora-visual "
cp ../aurora-visual/aurora-monitor/target/aurora-visual-monitor.jar  ./aurora/visual/monitor/jar

echo "begin copy aurora-modules-system "
cp ../aurora-modules/aurora-system/target/aurora-modules-system.jar ./aurora/modules/system/jar

echo "begin copy aurora-modules-file "
cp ../aurora-modules/aurora-file/target/aurora-modules-file.jar ./aurora/modules/file/jar

echo "begin copy aurora-modules-job "
cp ../aurora-modules/aurora-job/target/aurora-modules-job.jar ./aurora/modules/job/jar

echo "begin copy aurora-modules-gen "
cp ../aurora-modules/aurora-gen/target/aurora-modules-gen.jar ./aurora/modules/gen/jar

